#include "qmlcppslotsignal.h"

QmlCppSlotSignal::QmlCppSlotSignal()
{

}

void QmlCppSlotSignal::cppSlot(const QString& receivedMsg) {
    qDebug() << "C++ received:" << receivedMsg;
    type = receivedMsg;

    ParseFiles *pf = new ParseFiles(type);
    if(pf != nullptr){

        if(pf->RunParse() != 0){
            Error1("pf->SetPath вернула ошибку.");
        }
    }
    else {
        Error1("pf не инициализирована.");
    }
    delete pf;
}
